package com.university.sol.dao;

import com.university.sol.pojo.Team;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TeamMapper {
    int deleteByPrimaryKey(Long teamNumber);

    int insert(Team record);

    int insertSelective(Team record);

    Team selectByPrimaryKey(Long teamNumber);

    int updateByPrimaryKeySelective(Team record);

    int updateByPrimaryKey(Team record);

    List getByEmailAndTag(@Param("userEmail") String userEmail, @Param("tag") String tag);

    Team getByEmailAndTeamNum(@Param("userEmail") String userEmail, @Param("teamNum") Long teamNum);

    List<Team> getByLikeNum(@Param("userEmail") String userEmail);

    List<Team> getByRecent(@Param("userEmail") String userEmail);
}